﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LegalAffairsSmallClass.aspx.cs" Inherits="HFWebManage.LegalAffairs.LegalAffairsSmallClass" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <link href="../css/main.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
        function ConfirmDel(el_message) {
            if (confirm(el_message)) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>
    <style type="text/css">
        .style1
        {
            width: 15%;
        }
    </style>
</head>
<form id="theForm" runat="server">
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
    <br>
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="96%" align="center"
        border="0">
        
        <tr>
            <th colspan="3">
                增加/修改   法律事务小分类</th>
        </tr>
        <tr>
            <td class="usertablerow2" width="15%">法律事务大小分类名称：</td>
            <td class="usertablerow2">
                <asp:TextBox ID="tbSmallClass" runat="server" Width="216px"></asp:TextBox>
            </td>
            <td class="usertablerow2" width="25%"></td>
        </tr>
        <tr>
          <td class="usertablerow1">所属法律事务大分类</td>
          <td class="usertablerow1">
             <asp:DropDownList ID="DropBigClass" runat="server">
                </asp:DropDownList>
          </td>
          <td class="usertablerow1" width="25%"></td>
        </tr>
        <tr>
            <td class="usertablerow1">&nbsp;
                </td>
            <td class="usertablerow1">
                <div align="left">
                    <asp:Button ID="Button1" runat="server" Text="保存" onclick="Button1_Click"/>
                    <asp:HiddenField ID="IDS" runat="server" />
                </div>
            </td>
            <td class="usertablerow1">&nbsp;</td>
        </tr>
        
    </table>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="4" width="96%" align="center"
        border="0">
        <tr>
            <th colspan="4">法律事务小分类</th>
        </tr>
        <tr>
            <td class="usertablerow3" width="5%"><b>ID</b></td>
            <td class="usertablerow3" width="40%"><b>法律事务小分类名称</b></td>
            <td class="usertablerow3" width="40%"><b>法律事务大分类名称</b></td>
            <td class="usertablerow3" width="15%"><b>操作</b></td>
        </tr>
        
        <%
            string stylestr = "usertablerow1";
            foreach (hf.Model.LegalAffairsSmallClass i in list)
            { %>
        <tr>
               <td class="<%=stylestr %>"><%=i.ID %></td>
               <td class="<%=stylestr %>"><%=i.SmallClassName%></td>
               <td class="<%=stylestr %>"><%=getLegalAffairsBigClassName(i.BigClassName)%></td>
               <td class="<%=stylestr %>"><a href="LegalAffairsSmallClass.aspx?action=modify&ID=<%=i.ID %>">修改</a> <a onclick="return ConfirmDel('确定删除吗？');" href="LegalAffairsSmallClass.aspx?action=delete&ID=<%=i.ID %>">删除</a></td>
        </tr>
        <%
                if (stylestr == "usertablerow1")
                {
                    stylestr = "usertablerow2";
                }else{
                    stylestr = "usertablerow1";
                }
            } %>
    </table>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="4" width="96%" align="center"
        border="0">
        <tr>
            <td class="usertablerow1" >
                <asp:Label ID="pager" runat="server" Text=""></asp:Label></td>
        </tr>
    </table>
    <br />
</body>
</form>
</html>

